package dk.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ReturnData.ResponseData;


import dk.service.ConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(tags = "配置信息获取")
@RequestMapping("GetConfig")
public class ConfigController {
	@Autowired
	ConfigService configservice;
	
@PostMapping("/GetLoginConfigByAdminToken")
@ApiOperation("根据admintoken获取登录配置信息")
public ResponseData GetLoginConfigByAdminToken(String AdminToken){
	return configservice.GetLoginConfigByAdminToken(AdminToken);
}
@ApiOperation("根据token获取examlist查询下拉列表信息")
@PostMapping("/GetExamListSearchConfig")
public ResponseData GetExamListSearchConfig(String token) {
	return configservice.GetExamListSearchConfig(token);
}

}
